package com.InteInfo.action;

import org.apache.log4j.Logger;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.beans.factory.annotation.Autowired;

import com.InteInfo.server.IUserService;

@ParentPackage("basePackage")
@Namespace("/")
@Action(value = "userAction")
public class UserAction {

	private static final Logger logger = Logger.getLogger(UserAction.class);

	private IUserService userService;

	public IUserService getUserService() {
		return userService;
	}

	@Autowired
	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	public void test() {
		logger.info("进入Action");
		this.userService.save();
	}

}
